package com.hdax.dm.api.order.controller;

import com.hdax.dm.api.order.OrderLinkUserControllerApi;
import com.hdax.dm.entity.order.OrderLinkUser;
import com.hdax.dm.service.OrderLinkUserPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderLinkUserPController implements OrderLinkUserControllerApi {

    @Autowired
    private OrderLinkUserPService orderLinkUserPService;

    @Override
    public List<OrderLinkUser> findLinkUserByOrderId(Long id) {
        return orderLinkUserPService.findLinkUserByOrderId(id);
    }

    @Override
    public Integer deleteOrderLinkUser(Long orderId) {
        return orderLinkUserPService.deleteOrderLinkUser(orderId);
    }
}
